using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace duqin.Entities
{

    /// <summary>
    /// 歌手表
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(Name = "user", DisableSyncStructure = true)]
    public partial class User
    {

        [JsonProperty, Column(Name = "id", DbType = "int(10)", IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        [JsonProperty, Column(Name = "coverPictureUrl")]
        public string CoverPictureUrl { get; set; }

        [JsonProperty, Column(Name = "musicCount", DbType = "int(10)")]
        public int? MusicCount { get; set; } = 0;

        [JsonProperty, Column(Name = "musicPlayCount", DbType = "int(10)")]
        public int? MusicPlayCount { get; set; } = 0;

        [JsonProperty, Column(Name = "nickname", StringLength = 40)]
        public string Nickname { get; set; }

        /// <summary>
        /// 角色 NORMAL_USER DQ_SINGER DQ_OFFICIAL_ACCOUNT
        /// </summary>
        [JsonProperty, Column(Name = "type", StringLength = 32)]
        public string Type { get; set; } = "NORMAL_USER";

    }

}
